package com.kaisu.blog.application.user.service;

import jakarta.servlet.http.HttpServletRequest;

/**
 * @author kaisu
 */
public interface JWTService {
    /**
     * 签名生成
     *
     * @param account account
     * @return token
     */
    String generateToken(String account);

    /**
     * 签名检验
     *
     * @param token token
     * @return username
     */
    String validateToken(String token);

    /**
     * 签名查询
     *
     * @param request request
     * @return token
     */
    String getToken(HttpServletRequest request);
}